package br.com.spam.pipeline.core;

public class PreditorDesvio
{
	private int lastInstruction;
	private boolean lastInstructionDecision;

	public boolean getPrediction(int instruction)
	{
		if (this.lastInstruction == instruction)
		{
			return this.lastInstructionDecision;
		}
		else
		{
			return false;
		}
	}

	public void addPrediction(int instruction, boolean decision)
	{
		this.lastInstruction = instruction;
		this.lastInstructionDecision = decision;
	}
}
